package com.iking.housekeeping.entity.servicerecord;

import java.util.Date;
import com.iking.housekeeping.httpbean.servicerecord.ReqServiceRecord;
import com.iking.housekeeping.httpbean.elderlyres.UpdateElderly;

/**
 * @author Administrator
 *
 */
public class ServiceRecord {
	/**
	 * ID
	 */
    private String fId;

    /**
     * 服务类型(ID)
     */
    private String fServiceType;

    /**
     * 服务状态(ID)
     */
    private String fState;

    /**
     * 服务次数
     */
    private Integer fTimes;


    /**
     * 服务时长
     */
    private Double fDuration;

    /**
     * 服务开始时间
     */
    private Date fBeginTime;

    /**
     * 服务结束时间
     */
    private Date fEndTime;

    /**
     * 服务人员(ID)
     */
    private String fServiceStaff;

    /**
     * 老人(ID)
     */
    private String fElderly;

    /**
     * 评价满意度(ID)
     */
    private String fSatisfaction;

    /**
     * 照片1
     */
    private String fPhoto1;

    /**
     * 照片2
     */
    private String fPhoto2;

    /**
     * 备注
     */
    private String fRemarks;

    /**
     * 创建时间
     */
    private Date fGmtCreate;

    /**
     * 修改时间
     */
    private Date fGmtModified;

    /**
     * 预约时间
     */
    private Date fReServation;
    
    /**
     *是否需要更换服务 
     */
    private String fIsChangeType;
    
    /**
     * 下次服务类型
     */
    private String fChangedType;
    
    /**
     * 起始位置
     */
    private String fStartPosition;
    
    /**
     * 结束位置
     */
    private String fEndPosition;
    
    /**
     * 是否删除
     */
    private String fIsDelete;
    
    
    
    public String getfEndPosition() {
		return fEndPosition;
	}

	public void setfEndPosition(String fEndPosition) {
		this.fEndPosition = fEndPosition;
	}

	public String getfStartPosition() {
		return fStartPosition;
	}

	public void setfStartPosition(String fStartPosition) {
		this.fStartPosition = fStartPosition;
	}

	public String getfIsChangeType() {
		return fIsChangeType;
	}

	public void setfIsChangeType(String fIsChangeType) {
		this.fIsChangeType = fIsChangeType;
	}

	public String getfChangedType() {
		return fChangedType;
	}

	public void setfChangedType(String fChangedType) {
		this.fChangedType = fChangedType;
	}

	public ServiceRecord() {
		// TODO Auto-generated constructor stub
	}
    
    public ServiceRecord(ReqServiceRecord reqServiceRecord,Integer fTimes,Double fDuration,String fId,String fStatus) {
		this.fReServation = reqServiceRecord.getTime();
		this.fElderly = reqServiceRecord.getElderlyId();
		this.fServiceStaff = reqServiceRecord.getfStrffId();
		this.fState = fStatus; 
		this.fTimes = fTimes;
		this.fDuration = fDuration;
		this.fId = fId;
	}
    
    public ServiceRecord(UpdateElderly updateElderly) {
		this.fId = updateElderly.getfId();
		this.fStartPosition = updateElderly.getfStartPosition();
		this.fBeginTime = updateElderly.getfStartTime();
	}
    
    public ServiceRecord(Date fReServation,String fId) {
    	this.fReServation = fReServation;
    	this.fId = fId;
    }
    
    public Date getfReServation() {
		return fReServation;
	}

	public void setfReServation(Date fReServation) {
		this.fReServation = fReServation;
	}

	public String getfId() {
        return fId;
    }

    public void setfId(String fId) {
        this.fId = fId == null ? null : fId.trim();
    }

    public String getfServiceType() {
        return fServiceType;
    }

    public void setfServiceType(String fServiceType) {
        this.fServiceType = fServiceType == null ? null : fServiceType.trim();
    }

    public String getfState() {
        return fState;
    }

    public void setfState(String fState) {
        this.fState = fState == null ? null : fState.trim();
    }

    public Integer getfTimes() {
        return fTimes;
    }

    public void setfTimes(Integer fTimes) {
        this.fTimes = fTimes;
    }

    public Double getfDuration() {
        return fDuration;
    }

    public void setfDuration(Double fDuration) {
        this.fDuration = fDuration;
    }

    public Date getfBeginTime() {
        return fBeginTime;
    }

    public void setfBeginTime(Date fBeginTime) {
        this.fBeginTime = fBeginTime;
    }

    public Date getfEndTime() {
        return fEndTime;
    }

    public void setfEndTime(Date fEndTime) {
        this.fEndTime = fEndTime;
    }

    public String getfServiceStaff() {
        return fServiceStaff;
    }

    public void setfServiceStaff(String fServiceStaff) {
        this.fServiceStaff = fServiceStaff == null ? null : fServiceStaff.trim();
    }

    public String getfElderly() {
        return fElderly;
    }

    public void setfElderly(String fElderly) {
        this.fElderly = fElderly == null ? null : fElderly.trim();
    }

    public String getfSatisfaction() {
        return fSatisfaction;
    }

    public void setfSatisfaction(String fSatisfaction) {
        this.fSatisfaction = fSatisfaction == null ? null : fSatisfaction.trim();
    }

    public String getfPhoto1() {
        return fPhoto1;
    }

    public void setfPhoto1(String fPhoto1) {
        this.fPhoto1 = fPhoto1 == null ? null : fPhoto1.trim();
    }

    public String getfPhoto2() {
        return fPhoto2;
    }

    public void setfPhoto2(String fPhoto2) {
        this.fPhoto2 = fPhoto2 == null ? null : fPhoto2.trim();
    }

    public String getfRemarks() {
        return fRemarks;
    }

    public void setfRemarks(String fRemarks) {
        this.fRemarks = fRemarks == null ? null : fRemarks.trim();
    }

    public Date getfGmtCreate() {
        return fGmtCreate;
    }

    public void setfGmtCreate(Date fGmtCreate) {
        this.fGmtCreate = fGmtCreate;
    }

    public Date getfGmtModified() {
        return fGmtModified;
    }

    public void setfGmtModified(Date fGmtModified) {
        this.fGmtModified = fGmtModified;
    }

	public String getfIsDelete() {
		return fIsDelete;
	}

	public void setfIsDelete(String fIsDelete) {
		this.fIsDelete = fIsDelete;
	}


}